﻿using System.Diagnostics;

namespace Cef.Utility
{
    public class SpeedCounter
    {
        public SpeedCounter(string instanceName)
        {

            Sent = new PerformanceCounter("Network Interface", "Bytes Sent/sec", instanceName);
            Received = new PerformanceCounter("Network Interface", "Bytes Received/sec", instanceName);
        }

        public PerformanceCounter Sent { get; set; }
        public PerformanceCounter Received { get; set; }
    }
}